package com.team8.system.service.service;

import com.team8.system.pojo.PackageInfo;
import com.team8.system.service.dao.PackageInfoDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

@Service
public class PackageInfoService {

    @Autowired
    private PackageInfoDao packageInfoDao;

    public List<PackageInfo> getgetPackageInfosByFfidAndPackid(String ffid, String packId) {

        Example example = new Example(PackageInfo.class);
        Example.Criteria criteria = example.createCriteria();

        criteria.andLike("ffid", "%"+ffid+"%");
        criteria.andLike("pacgId", "%"+packId+"%");

        List<PackageInfo> packageInfos = packageInfoDao.selectByExample(example);
        return packageInfos;


    }
}
